package queryProccessor;
abstract class Command {

	protected String table_name;
	
	protected String insertStatment;

	public String getTable_name() {
		return table_name;
	}

	public void setTable_name(String table_name) {
		this.table_name = table_name;
	}

	

	public static int search(String s1, String s2) {
		for (int i = 0; i < s2.length(); i++) {
			boolean found = true;
			for (int j = 0; j < s1.length() && found; j++) {
				try {
					if (s1.charAt(j) != s2.charAt(i + j)
							&& s1.charAt(j) + 32 != s2.charAt(i + j))
						found = false;
				} catch (Exception e) {
					found = false;
				}
			}
			if (found == true)
				return i;
		}
		return -1;
	}

	public abstract boolean checkSyntax();

	public abstract void convertToArray();
	
}
